using System;
using System.IO;
using System.Net;
using System.Windows;
using System.Diagnostics;

namespace Qplus.Commands
{
    public class AbsHeaderHttpCommand : HttpCommand, HttpInputStreamProcessor
    {

	    string UID = "UID";
	    string UKEY = "UKEY";
	    /**
	     * @param command
	     */
        public AbsHeaderHttpCommand(String command, String uid, String ukey)
            :base(command)
        {
            addHeader(UID, uid);
            addHeader(UKEY, ukey);
            addHeaderList();
	    }

        public virtual Boolean processHeader(WebHeaderCollection Header)
        {
		    return true;
	    }

        public virtual Boolean processInputStream(Stream responseStream)
        {
            Debug.WriteLine("TODO");
		    return true;
	    }

        public virtual void onSuccess(int code)
        {
            return;
	    }


        public virtual void onFailed(int code)
        {
            
	    }


        public virtual void onStart() 
        {
	    }


        public virtual void onVerifyFailed(int code)
        {
	    }
    }
}
